﻿@extends('Layout/layout')
@section('yemian')
<style type="text/css">
	.e_css {
    background: url(/public/images/lift_li_02_02.gif) no-repeat;
    width: 179px;
    font-weight: bold;
    color: #000;
    z-index: 1;
	}
</style>
<script type="text/javascript">
	$(document).ready(function(){ 
	 
		document.getElementById("notice").className = "e_css";
	}); 
</script>
<body class="mian_bj">
<div class="mian_top_01">
<div class="mian_top_r"></div>
<div class="mian_top_l"></div>
<div class="mian_top_c">
<ul>
@if(session('role') == 1)
<li><a href="{{ url('/Proclamation')}}">
<p>
公告类别</p>
</a></li>
@endif
<li><a href="/Notice/Notice/guanli">
<p>
公告管理</p>
</a></li>


</ul>
</div>
<div class="mian_b">
<div class="mian_b1">
@if(session('role') == 1)
<a href="{{ url('/Notice/Notice/add') }}" title="添加">
<p class="mian_b1_a1">
</p>
</a>
@endif
<form action="{{url('/Notice/Notice/guanli')}}" modth="get">
	
<p class="mian_b1_sousuo"><input name="name" type="text" value="公告主题"></p>
<input type="image" src="/public/images/1.jpg" style="margin:13px;">
</form>


</div>
<table width="100%" border="0" cellpadding="0" cellspacing="0" class="mian_b_bg">
<tr>
<td width="3%" class="mian_b_bg_lm"><input name="" type="checkbox" value="">&nbsp;</td>
<td width="10%" class="mian_b_bg_lm"><span></span>&nbsp;&nbsp;公告主题</td>
<td width="5%" class="mian_b_bg_lm"><span></span>公告类别</td>
<td width="10%" class="mian_b_bg_lm"><span></span>发表时间</td>
<td colspan="3" class="mian_b_bg_lm"><span></span>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;操作</td>
</tr>
@foreach($notice as $k=>$v)
<tr>
<td><input name="" type="checkbox" value="">&nbsp;</td>

<td>
@if($v['Top'] == 1)
	<img src = "/public/images/zhiding1.png">
@else
	&nbsp;&nbsp;
@endif
{{$v['Title']}}
</td>
<td>{{$v['ProclamationClass']}}</td>
<td>{{date('Y-m-d H:i:s',$v['Date'])}}</td>

@if(session('role') == 1)
<td width="3%" class="mian_b_icon_02"><a href="{{ url('/Notice/Notice/look',['id'=>$v['NoticeID']]) }}">查看</a></td>
<td width="3%" class="mian_b_icon_01"><a href="{{ url('/Notice/Notice/edit',['id'=>$v['NoticeID']]) }}">编辑</a></td>
<td width="4%" class="mian_b_icon_01"><a href="{{ url('/Notice/Notice/del',['id'=>$v['NoticeID']]) }}">删除</a></td>
@else
<td width="5%" class="mian_b_icon_02"><a href="{{ url('/Notice/Notice/look',['id'=>$v['NoticeID']]) }}">查看</a></td>
<td width="5%" ><a href="{{ url('/Notice/Notice/edit',['id'=>$v['NoticeID']]) }}"></a></td>
@endif

</tr>
@endforeach
</table>

<div style="float:left;" id="fenye">
{!! $notice->appends($info)->render() !!}
</div>

</div>
</div>
</body>
@endsection

